
function count(state = 999, action) {
    switch (action.type) {
        case "ADD":
            state += action.count
            return state
        default:
            return state
    }
}

export default count